import { IsNotEmpty, Length, IsString, IsNumber, Min, Max, IsArray, ArrayMinSize, ArrayMaxSize, IsOptional, MaxLength } from 'class-validator';

class Common {
    @Length(1, 30)
    @IsString()
    name:string;

    @Length(1, 20)
    @IsString()
    code:string;
}


export class AddCateogryDto extends Common {
    
}

export class EditCategoryDto extends Common {
    
}
